﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// WebFunction 的摘要说明
/// </summary>
public class WebFunction
{
	public WebFunction()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}
    public static string RequestString(string PubContent)  //容错，如果接收的参数为容，哪么返加一个空值// 
    {
        if (System.Web.HttpContext.Current.Request[PubContent] != null)
        {
            return System.Web.HttpContext.Current.Request[PubContent].ToString();
        }
        else
        {
            return "";
        }
    }
}
